import { Controller } from 'egg';

export default class LoginController extends Controller {
  public async index() {
    const { ctx } = this;
    console.log(ctx.csrf);
    await ctx.render('login');
  }

  public async add() {
    const { ctx } = this;
    console.log(ctx.request.body);
  }
}
